Skip to content

Add path.data functionality #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

untergeek
Copy link
Contributor

@untergeek untergeek commented Jul 28, 2016

...but maintain reverse compatibility for older versions of Logstash

I don't yet know how to test this...

But maintain reverse compatibility for older versions of Logstash

I don't yet know how to test this...
I really need to stop thinking in Python...
@@ -170,6 +171,7 @@ def register
require "digest/md5"
@logger.info("Registering file input", :path => @path)
@host = Socket.gethostname.force_encoding(Encoding::UTF_8)
@settings = defined?(LogStash::SETTINGS) ? LogStash::SETTINGS : nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment above this line that says this is specifically for checking if we're on Logstash 5.x?

Also, @settings probably doesn't need to be an instance variable, does it?

And document what settings is for, and why.
@jordansissel
Copy link
Contributor

LGTM other than having no tests. Thoughts?

@untergeek
Copy link
Contributor Author

Thoughts?

I'm wracking my brain trying to figure out a way to test this, either with integration or unit tests. I'm coming up blank. I think my brain is tired.

@jordansissel
Copy link
Contributor

@untergeek agreed. I'm OK merging this as-is if we open a ticket to add an integration test for sincedb default locations. Sound ok?

@untergeek
Copy link
Contributor Author

@untergeek agreed.

You agree that my brain is tired? 😛

I'll add a ticket to figure out how to test sincedb locations.

@jordansissel
Copy link
Contributor

You agree that my brain is tired? 😛

Maaaybe my brain is also tired and is seeking a nap ;P

@jordansissel
Copy link
Contributor

I'm ignoring the travis failure because of a known issue with logstash master branch. @andrewvc is working on a fix, but I couldn't find a link to any ticket or PR -- @andrewvc can you link to the issue/pr?

@suyograo suyograo closed this Jul 30, 2016
@suyograo suyograo reopened this Jul 30, 2016
@suyograo
Copy link
Contributor

suyograo commented Sep 6, 2016

LGTM

@elasticsearch-bot
Copy link

Aaron Mildenstein merged this into the following branches!

Branch Commits
master 72d17fd, d7bbd7e, a0f04d7

elasticsearch-bot pushed a commit that referenced this pull request Sep 6, 2016
I really need to stop thinking in Python...

Fixes #133
elasticsearch-bot pushed a commit that referenced this pull request Sep 6, 2016
And document what settings is for, and why.

Fixes #133
@untergeek untergeek deleted the feature/132 branch September 6, 2016 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants